package com.jstyle.beatecg.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;

import java.io.Serializable;

/**
 * Created by Administrator on 2018/6/5.
 */
@Entity
public class StepData implements Serializable {
    static final long serialVersionUID=1;
    @Id
    String time;
    int readnumber=0;//读取编号
    double steps=0;//步数
    double calorie=0;//卡路里（计算后保存为千卡）
    double distance=0;//距离（计算后保存为千米）


    int year=0;//年
    int momth=0;//月
    int day=0;//日
    int hour=0;//小时
    int minute=0;//分钟
    int millisecond=0;//毫秒


    @Keep
    public StepData(String time, int readnumber, double steps, double calorie,
                    double distance, int year, int momth, int day, int hour, int minute,
                    int millisecond) {
        this.time = time;
        this.readnumber = readnumber;
        this.steps = steps;
        this.calorie = calorie;
        this.distance = distance;
        this.year = year;
        this.momth = momth;
        this.day = day;
        this.hour = hour;
        this.minute = minute;
        this.millisecond = millisecond;
    }

    @Generated(hash = 90761876)
    public StepData() {
    }



    public String getTime() {
        return time;
    }

    public void setTime(String time) { this.time = time; }
    public int getReadnumber() { return readnumber; }
    public void setReadnumber(int readnumber) { this.readnumber = readnumber; }
    public double getSteps() { return steps; }
    public void setSteps(double steps) { this.steps = steps; }
    public double getCalorie() { return calorie; }
    public void setCalorie(double calorie) { this.calorie = calorie; }
    public double getDistance() { return distance; }
    public void setDistance(double distance) { this.distance = distance; }
    public int getYear() { return year; }
    public void setYear(int year) { this.year = year; }
    public int getMomth() { return momth; }
    public void setMomth(int momth) { this.momth = momth; }
    public int getDay() { return day; }
    public void setDay(int day) { this.day = day; }
    public int getHour() { return hour; }
    public void setHour(int hour) { this.hour = hour; }
    public int getMinute() { return minute; }
    public void setMinute(int minute) { this.minute = minute; }
    public int getMillisecond() { return millisecond; }
    public void setMillisecond(int millisecond) { this.millisecond = millisecond; }
}
